package com.zhentao.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhentao.pojo.UserApp;
import com.zhentao.service.UserAppService;
import com.zhentao.mapper.UserAppMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
* @author 15134
* @description 针对表【user_app】的数据库操作Service实现
* @createDate 2025-05-06 19:45:28
*/
@Service
public class UserAppServiceImpl extends ServiceImpl<UserAppMapper, UserApp>
    implements UserAppService{

    @Resource
    private UserAppMapper userAppMapper;

    @Override
    public UserApp login(String username, String password) {
        UserApp userApp = userAppMapper.selectOne(new QueryWrapper<UserApp>().eq("username", username).eq("password", password));
        return userApp;
    }
}




